const {getHttpMovie,getHttpBanner} = require("../../models/http")
Page({
  data:{
    swiperParams:{
      dots:true,
      circular:true,
      autoplay:true
    },
    movies:"",
    banner:""
  },
  onLoad(){
    getHttpMovie({
      success:res=>{
        this.setData({
          movies:res.data.result
        })
      }
    }),
    getHttpBanner({
      success:res=>{
        this.setData({
          banner:res.data
        })
      }
    })
  }
})
